package com.binary.coder.gift.core.infrastructure.mapper.sys;

import com.binary.coder.gift.core.common.mapper.SuperMapper;
import com.binary.coder.gift.core.infrastructure.po.sys.SysApiSql;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysApiSqlMapper extends SuperMapper<SysApiSql> {

    SysApiSql selectByCode(@Param("code") String code);

    int updateCellAlias(@Param("id") long id, @Param("cellAlias") String cellAlias);

    @MapKey("column_key")
    List<Map<String, String>> selectColumns();
}
